package com.liuceng.zen.pojo.form;

import com.liuceng.zen.pojo.domain.Member;
import com.liuceng.zen.pojo.domain.WechatUser;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Pattern;
import java.util.List;

@Data
public class ProfileForm extends BaseForm{
  
    public Integer avatarId;
	public String qq;
	
	public String phone;
	
	@Pattern(regexp = Member.MOBILE_PHONE_NUMBER_PATTERN)
	public String mobile;
	public String username;
	
	@NotBlank(message = "请输入邮件email")
	@Pattern(regexp = Member.EMAIL_PATTERN)
	public String email;
	
	@NotBlank(message = "请公司名称")
	@Length(min = 2, max = 80,message = "公司名称长度需在{min}到{max}之间")
	public String companyName;
	public String address;
	
	public String picPath;

	public List<WechatUser> wechatUsers;

	public Integer isBinding;
	public Integer account;
}

